package com.ls.springcloud.config;

import org.springframework.cloud.client.loadbalancer.LoadBalanced;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.client.RestTemplate;

/**
 * @Author Moro
 * @Date 2021/6/2 22:50
 * @title ApplicationContextConfig
 */
@Configuration
public class ApplicationContextConfig {
    /**
     * 配置restTemplate
     *
     * @return
     */
    @Bean
//    @LoadBalanced
    public RestTemplate restTemplate() {
        return new RestTemplate();
    }
}
